common/wait: Clarifications to wait infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 Dec 2017 11:41:13 +0000 (11:41 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Jan 2018 19:57:08 +0000 (19:57 +0000)
commit2d1c82261d966735e82e5971eddb63ba3c565a37
treee8d2827079aa4ae6441c3111c5adc3fe41a6606a
parent03bd8c3a70d101fc2f8f36f1e171b7594462a4cd
common/wait: Clarifications to wait infrastructure

This logic is not as clear as it could be.  Add some comments to help.

Rearrange the asm block in __prepare_to_wait() to separate the GPR
saving/restoring from the internal logic.

While tweaking, add an unreachable() following the jmp in
check_wakeup_from_wait().

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/wait.c